#include "Nano100Series.h"

uint8_t edid_data_2K[256] = {
	0x00,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0xFF,
	0x00,
	0x52,
	0x62,
	0x88,
	0x88,
	0x00,
	0x88,
	0x88,
	0x88,
	0x1C,
	0x15,
	0x01,
	0x03,
	0x80,
	0x00,
	0x00,
	0x78,
	0x0A,
	0x0D,
	0xC9,
	0xA0,
	0x57,
	0x47,
	0x98,
	0x27,
	0x12,
	0x48,
	0x4C,
	0x00,
	0x00,
	0x00,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x01,
	0x04,
	0x74,
	0xA0,
	0xC4,
	0x51,
	0x00,
	0x38,
	0xA0,
	0x2C,
	0x48,
	0x00,
	0x45,
	0x70,
	0x00,
	0x8F,
	0x00,
	0x00,
	0x1E,
	0x04,
	0x74,
	0xA0,
	0xC4,
	0x51,
	0x00,
	0x38,
	0xA0,
	0x2C,
	0x48,
	0x00,
	0x45,
	0x70,
	0x00,
	0x8F,
	0x00,
	0x00,
	0x1E,
	0x00,
	0x00,
	0x00,
	0xFC,
	0x00,
	0x54,
	0x6F,
	0x73,
	0x68,
	0x69,
	0x62,
	0x61,
	0x2D,
	0x55,
	0x48,
	0x32,
	0x44,
	0x0A,
	0x00,
	0x00,
	0x00,
	0xFD,
	0x00,
	0x14,
	0x78,
	0x01,
	0xFF,
	0x1D,
	0x00,
	0x0A,
	0x20,
	0x20,
	0x20,
	0x20,
	0x20,
	0x20,
	0x01,
	0xB3,
	0x02,
	0x03,
	0x21,
	0x41,
	0x47,
	0xC7,
	0x46,
	0x46,
	0x46,
	0x46,
	0x46,
	0x46,
	0x23,
	0x09,
	0x07,
	0x01,
	0x83,
	0x01,
	0x00,
	0x00,
	0x6C,
	0x03,
	0x0C,
	0x00,
	0x10,
	0x00,
	0x00,
	0x3C,
	0x20,
	0xA0,
	0x02,
	0x01,
	0x00,
	0x04,
	0x74,
	0xA0,
	0xC4,
	0x51,
	0x00,
	0x38,
	0xA0,
	0x2C,
	0x48,
	0x00,
	0x45,
	0x70,
	0x00,
	0x8F,
	0x00,
	0x00,
	0x1E,
	0x04,
	0x74,
	0xA0,
	0xC4,
	0x51,
	0x00,
	0x38,
	0xA0,
	0x2C,
	0x48,
	0x00,
	0x45,
	0x70,
	0x00,
	0x8F,
	0x00,
	0x00,
	0x1E,
	0x04,
	0x74,
	0xA0,
	0xC4,
	0x51,
	0x00,
	0x38,
	0xA0,
	0x2C,
	0x48,
	0x00,
	0x45,
	0x70,
	0x00,
	0x8F,
	0x00,
	0x00,
	0x1E,
	0x04,
	0x74,
	0xA0,
	0xC4,
	0x51,
	0x00,
	0x38,
	0xA0,
	0x2C,
	0x48,
	0x00,
	0x45,
	0x70,
	0x00,
	0x8F,
	0x00,
	0x00,
	0x1E,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x00,
	0x47,
};

void EdidInit(void)
{
	int i;
	uint8_t sum;

	sum = 0;
	for (i = 0; i < 127; i++) {
		sum += edid_data_2K[i];
	}
	edid_data_2K[i] = -sum;

	sum = 0;
	for (i = 128; i < 255; i++) {
		sum += edid_data_2K[i];
	}

	edid_data_2K[i] = -sum;
}
